using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class mapboundary : MonoBehaviour
{
    
    public double x1;
    public double x2;
    public double y1;
    public double y2;
    private void Set()
    {
        x1 = gameObject.transform.position.x - gameObject.transform.lossyScale.x / 2;
        x2= gameObject.transform.position.x + gameObject.transform.lossyScale.x / 2;
        y1 = gameObject.transform.position.y - gameObject.transform.lossyScale.y / 2;
        y2 = gameObject.transform.position.y + gameObject.transform.lossyScale.y / 2;
    }
    private void Awake()
    {
        Set();
    }
}
